package com.ocom.common.entity.pay;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: TODO
 * @Author: 朱晖
 * @Date: 2022/8/10
 **/

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "app_config")
public class EntityAppConfig  implements Serializable {


	private static final long serialVersionUID = 8286242651599319561L;

	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	private Long comId;

	private Integer bind;

	private Integer qrCode;


	Boolean recharge = false;

	//注册
	Integer register = 0;

	@JsonProperty("family")
	private Boolean family;

	@JsonProperty("withholdSign")
	Boolean withholdSign = false;

	@JsonProperty("facePhoto")
	Boolean facePhoto = false;

	@JsonProperty("xfBalance")
	Boolean xfBalance = true;
	@JsonProperty("xfBasic")
	Boolean xfBasic = true;


	@JsonProperty("gzhAppid")
	private String gzhAppid;

	//手机号/编号
	@JsonProperty("showCode")
	private String showCode;
	@JsonProperty("showUsername")
	private String showUsername;
	@JsonProperty("showTitle")
	private String showTitle;
	@JsonProperty("showDep")
	private String showDep;

	Boolean mobile = false;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;


	@JsonProperty("mjBasic")
	Boolean mjBasic ;

	@JsonProperty("orderFood")
	Integer orderFood ;

	@JsonProperty("fee")
	Boolean fee ;

	Boolean videoCall ;

	Boolean repairPay ;

	Boolean cloudPc ;

	@TableField(exist = false)
	Boolean subAccount ;


	/*周	2023-4-26	1.9.47	修改2.1.3单位公众号配置app_config，添加family字段
	* ALTER TABLE app_config ADD COLUMN family TINYINT(4) DEFAULT 0 COMMENT '联系人管理功能，0：不启用，1：启用';
	* */
}
